export async function menusAPI() {
  return await new Promise((resolve, reject) => {
    resolve({
      code: 200,
      data: [
        {
          pathname: 'dashboard',
          name: 'dashboard',
          nonRenderChild: true,
          path: '/dashboard',
          meta: {
            title: '主页',
            isnobg: true,
            icon: 'dashboard',
          },
          redirect: {
            name: 'dashboard',
          },
          component: 'Layout',
          children: [
            {
              name: 'dashboard',
              path: '/dashboard',
              component: 'dashboard/Index',
            },
            {
              name: 'individualCenter',
              path: '/individualCenter',
              component: 'individualCenter/Index',
              meta: {
                icon: '',
                title: '个人中心',
              },
            },
          ],
        },
        {
          path: '/crm',
          pathname: 'crm',
          component: 'Layout',
          redirect: '/crm/advertising',
          meta: {
            icon: 'allApplication',
            title: 'CRM管理',
          },
          children: [
            {
              path: '/crm/advertising',
              pathname: 'advertising',
              component: 'crm/advertising/Index',
              name: 'advertising',
              meta: {
                icon: '',
                title: '广告管理',
              },
            },
            {
              path: '/crm/news',
              component: 'crm/news/Index',
              name: 'news',
              meta: {
                icon: '',
                title: '新闻管理',
              },
            },
            {
              path: '/crm/laborSpace',
              component: 'crm/laborSpace/Index',
              name: 'laborSpace',
              meta: {
                icon: '',
                title: '劳动空间',
              },
            },
            {
              path: '/crm/laborSpace/releaseRecord',
              component: 'crm/laborSpace/releaseRecord/Index',
              name: 'releaseRecord',
              meta: {
                icon: '',
                title: '发布记录',
                subheading: '劳动空间的发布记录',
                isreveal: true,
                isreturn: true,
                return: '发布记录',
                backtrack: 'laborSpace',
              },
            },
            {
              path: '/crm/H5',
              component: 'crm/H5/Index',
              name: 'newsType',
              meta: {
                icon: '',
                title: 'H5管理',
              },
            },
          ].map((item) => ({
            ...item,
            meta: {
              ...item.meta,
              openKeys: '/crm',
            },
          })),
        },
        {
          path: '/basicSetup',
          redirect: '/basicSetup/subjectClassify',
          component: 'Layout',
          meta: {
            icon: 'equalizer',
            title: '基础配置',
          },
          children: [
            {
              path: '/basicSetup/subjectClassify',
              component: 'basicSetup/subjectClassify/Index',
              name: 'subjectClassify',
              meta: { icon: '', title: '科目配置' },
            },
            {
              path: '/basicSetup/taskClassify',
              component: 'basicSetup/taskClassify/Index',
              name: 'taskClassify',
              meta: {
                icon: '',
                title: '任务类型配置',
              },
            },
            {
              path: '/basicSetup/taskGroupSetting',
              component: 'basicSetup/taskGroupSetting/Index',
              name: 'taskGroupSetting',
              meta: {
                icon: '',
                title: '任务群配置',
              },
            },

            {
              path: '/basicSetup/versionConfig',
              component: 'basicSetup/versionConfig/Index',
              name: 'versionConfig',
              meta: {
                icon: '',
                title: '版本配置',
              },
            },
            {
              path: '/basicSetup/materialConfig',
              component: 'basicSetup/materialConfig/Index',
              name: 'materialConfig',
              meta: {
                icon: '',
                title: '材料配置',
              },
            },
            {
              path: '/basicSetup/region',
              name: 'region',
              component: 'basicSetup/region/Index',
              meta: {
                icon: '',
                title: '区域配置',
              },
            },
            {
              path: '/basicSetup/schoolSettings',
              name: 'schoolSettings',
              component: 'basicSetup/schoolSettings/Index',
              meta: {
                icon: '',
                title: '学校配置',
              },
            },
            {
              path: '/basicSetup/gradeDisposition',
              name: 'gradeDisposition',
              component: 'basicSetup/gradeDisposition/Index',
              meta: {
                icon: '',
                title: '年级配置',
              },
            },
            {
              path: '/basicSetup/classDisposition',
              name: 'classDisposition',
              component: 'basicSetup/classDisposition/Index',
              meta: {
                icon: '',
                title: '班级配置',
              },
            },
            {
              path: '/basicSetup/baseConfiguration',
              name: 'baseConfiguration',
              component: 'basicSetup/baseConfiguration/Index',
              meta: {
                icon: '',
                title: '基地配置',
              },
            },
            {
              path: '/basicSetup/medalConfiguratio',
              name: 'medalConfiguratio',
              component: 'basicSetup/medalConfiguratio/Index',
              meta: {
                icon: '',
                title: '勋章配置',
              },
            },
          ].map((item) => ({
            ...item,
            meta: {
              ...item.meta,
              openKeys: '/basicSetup',
            },
          })),
        },
        {
          path: '/system',
          redirect: '/system/user',
          component: 'Layout',
          meta: { icon: 'settingTwo', title: '系统管理' },
          children: [
            {
              path: '/system/user',
              component: 'system/user/Index',
              name: 'user',
              meta: { icon: '', title: '用户管理' },
            },
            {
              path: '/system/menus',
              name: 'menus',
              component: 'system/menus/Index',
              meta: { icon: '', title: '菜单管理' },
            },
            {
              path: '/system/role',
              name: 'role',
              component: 'system/role/Index',
              meta: { icon: '', title: '角色管理' },
            },
          ].map((item) => ({
            ...item,
            meta: {
              ...item.meta,
              openKeys: '/system',
            },
          })),
        },
      ],
    });
  });
}
